package com.gitee.wsl.common.ui.base

import androidx.compose.ui.geometry.Size
import com.gitee.wsl.mathematics.interpolator.Percent

/**
 * A position relative to a zone.
 */
data class RelativePoint(val x: Percent, val y: Percent) {
    internal fun toPoint(size: Size) = Point(size.width * x.value, size.height * y.value)
}